#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>
#include <string.h>

int main()
{
	char p1[15] = "abcd";
	const char* p2 = "ABCD";
	char str[50] = "xyz";

	char* temp = strcat(p1 + 2, p2 + 1);
	strcpy(str + 2, temp);
	printf("%s", str);

	return 0;
}